package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.FreightTemplate;
import com.ecoolex.chinadutyfree.retailer.entity.FreightTemplateExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface FreightTemplateMapper {
    long countByExample(FreightTemplateExample example);

    int deleteByExample(FreightTemplateExample example);

    int deleteByPrimaryKey(Integer freightTemplateId);

    int insert(FreightTemplate record);

    int insertSelective(@Param("record") FreightTemplate record, @Param("selective") FreightTemplate.Column ... selective);

    FreightTemplate selectOneByExample(FreightTemplateExample example);

    List<FreightTemplate> selectByExample(FreightTemplateExample example);

    FreightTemplate selectByPrimaryKey(Integer freightTemplateId);

    FreightTemplate selectByPrimaryKeyWithLogicalDelete(@Param("freightTemplateId") Integer freightTemplateId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") FreightTemplate record, @Param("example") FreightTemplateExample example, @Param("selective") FreightTemplate.Column ... selective);

    int updateByExample(@Param("record") FreightTemplate record, @Param("example") FreightTemplateExample example);

    int updateByPrimaryKeySelective(@Param("record") FreightTemplate record, @Param("selective") FreightTemplate.Column ... selective);

    int updateByPrimaryKey(FreightTemplate record);

    int batchInsert(@Param("list") List<FreightTemplate> list);

    int batchInsertSelective(@Param("list") List<FreightTemplate> list, @Param("selective") FreightTemplate.Column ... selective);

    int logicalDeleteByExample(@Param("example") FreightTemplateExample example);

    int logicalDeleteByPrimaryKey(Integer freightTemplateId);
}